package io.kiki.sba.registry.core.model;


public enum Scope {

    /**
     * zone scope: only can receive pub list at same zone
     */
    zone,
    /**
     * dataCenter scope: only can receive pub list at same dataCenter (multi zone)
     */
    data_center,
    /**
     * global scope: can receive pub list at all dataCenter (multi zone)
     */
    global;

    public static boolean contains(String name) {
        for (Scope scope : values()) {
            if (scope.name().equals(name)) {
                return true;
            }
        }
        return false;
    }
}
